<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglibs.jsp" %>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="always" name="referrer">
    <title>月度申请管理</title>
    <link href="${ctxstatic}/css/custom-style.css" rel="stylesheet" type="text/css">

    <%@ include file="/WEB-INF/views/include/common.jsp" %>
    <style>
        #form_apply tr {
            line-height: 35px;
            margin-bottom: 4px;
        }

        #form_apply tr input, #form_apply select, #form_apply a {
            width: 144px;
        }

        .combo, .textbox {
            border: 1px solid #b9b8b8;
        }

        /*自定义datagrid样式*/
        /*.datagrid-cell,*/
        /*.datagrid-cell-group,*/
        /*.datagrid-header-rownumber,*/
        /*.datagrid-cell-rownumber {*/
        /*    margin: 0;*/
        /*    padding: 0 4px;*/
        /*    white-space: nowrap;*/
        /*    word-wrap: normal;*/
        /*    overflow: hidden;*/
        /*    height: 18px;*/
        /*    line-height: 8px;*/
        /*    font-weight: normal;*/
        /*    font-size: 6px;*/
        /*    !*font-family: SimHei;*!*/
        /*}*/
        /*.datagrid-header-row,*/
        /*.datagrid-row {*/
        /*    height: 20px;*/
        /*}*/

    </style>
    <script>
        var username = "${user.username}";
    </script>
</head>

<body>
<div class="easyui-layout" data-options="fit:true,border:false,minWidth:560">

    <div data-options="region:'center',border:false" style="height:100%">
        <table id="dg" style="width:100%;height:100%;">
        </table>
        <div id="tb" style="padding:2px 5px;">
            <a href="javascript:void(0)" onclick="add_monCategory()" class="easyui-linkbutton" iconCls="icon-add"
               plain="true">添加</a>
            <a href="javascript:void(0)" onclick="edit_monCategory()" class="easyui-linkbutton"
               iconCls="icon-edit"
               plain="true">编辑</a>
            <a href="javascript:void(0)" onclick="remove_monCategory()" class="easyui-linkbutton"
               iconCls="icon-remove"
               plain="true">删除</a>
        </div>
    </div>
</div>


<%--主页对话框车间类别--%>
<div id="dlg_monCategory_form"> <%--车间类别--%>

    <form id="form_monCategory">
        <table style="margin: 0 auto; padding: 10px;">
            <tr>
                <td>
                    <select id="contentDes" class="easyui-combobox" panelHeight="auto" name="contentDes" label='内容描述'
                            style="width:240px" editable="false" data-options="required:true">
                        <option value="月度申请">月度申请</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    <select id="departGroup" class="easyui-combobox" panelHeight="auto" name="departGroup" label='部门组别'
                            style="width:240px" editable="false" data-options="required:true">
                        <option value="PIE组">PIE组</option>
                        <option value="ME组">ME组</option>
                        <option value="办公辅料">办公辅料</option>
                        <option value="项目组">项目组</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    <select id="floorWorkshop" class="easyui-combobox" panelHeight="auto" name="floorWorkshop"
                            label='楼层车间'
                            style="width:240px" editable="false" data-options="required:false">
                        <option value="1F(NB车间)">1F(NB车间)</option>
                        <option value="2F(组包车间)">2F(组包车间)</option>
                        <option value="4F(插件车间)">4F(插件车间)</option>
                        <option value="4F(网关车间)">4F(网关车间)</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    <input id="completedBy" name="completedBy" label='填写人' class="easyui-textbox"
                           data-options="readonly:true" style="width:240px"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<%--月度申请页面--%>
<div id="dlg_monApply">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',border:false" style="padding: 10px 5px;">
            <input id="dlgReleaseTime" class="easyui-datebox" data-options="label:'选择年月'" style="width:200px;"/>
            <input id="username_apl" class="easyui-textbox" data-options="label:'申请人'" style="width:200px;"/>
            <input id="assets_no_apl" class="easyui-textbox" data-options="label:'物料编号'" style="width:160px;"/>
            <input id="assets_name_apl" class="easyui-textbox" data-options="label:'物料名称'" style="width:160px;"/>
            <input id="sizes_name_apl" class="easyui-textbox" data-options="label:'规格'" style="width:160px;"/>
            <a href="javascript:void(0)" onclick="queryMonthlyAssets()" class="easyui-linkbutton button-blue"
               style="width: 70px;margin-left: 10px;">查&nbsp;询</a>
        </div>
        <div data-options="region:'center',border:false" style="height:100%">
            <table id="assets-dg_mon" style="width:100%;height:100%;">
            </table>
            <div id="tb_apply_mon" style="padding:2px 5px;">
                <a id="btn-addByErpno" href="javascript:void(0)" onclick="add_monApply()" class="easyui-linkbutton"
                   iconCls="icon-add"
                   plain="true">添加</a>
                <%--            <a id="btn-editByErpno" href="javascript:void(0)" onclick="edit_apply()" class="easyui-linkbutton" iconCls="icon-edit"--%>
                <%--               plain="true">编辑</a>--%>
                <a id="btn-deleteByErpno" href="javascript:void(0)" onclick="del_monApply()"
                   class="easyui-linkbutton"
                   iconCls="icon-remove"
                   plain="true">删除</a>
                <a href="javascript:void(0)" onclick="importMonthlyApplyData()" class="easyui-linkbutton"
                   iconCls="icon-user-config"
                   plain="true">导入</a>
                <a href="javascript:void(0)" onclick="exportMonthlyApplyData()" class="easyui-linkbutton"
                   iconCls="icon-user-config"
                   plain="true">导出</a>
<%--                <a id="printBill" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-print" plain="true"--%>
<%--                   onclick="printBill()">打印</a>--%>
                <%--<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-save" plain="true">保存</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cut" plain="true">剪切</a>--%>
            </div>
        </div>
    </div>
</div>
<%--物资--%>
<div id="dlg_assets">
    <div data-options="region:'north',border:false" style="padding: 10px 5px;">
        <input id="typeNo_dlg" class="easyui-textbox" data-options="label:'物资编号'" style="width:200px;"/>
        <input id="assets_name" class="easyui-textbox" data-options="label:'物料名称'" style="width:160px;"/>
        <input id="sizes_name" class="easyui-textbox" data-options="label:'规格'" style="width:160px;"/>
        <a href="javascript:void(0)" onclick="queryAssets()" class="easyui-linkbutton button-blue"
           style="width: 70px;margin-left: 10px;">查&nbsp;询</a>
    </div>
    <div data-options="region:'center',border:false" style="height:100%">
        <table id="assets-dg" style="width:100%;height:100%;">
        </table>
    </div>
</div>


</body>
<script src="${ctxstatic}/js/mtManage/monthlyApply.js" type="text/javascript"></script>
</html>